<?php
class Shortmsg{

    public static function sendMsg($mobile,$postData){
        $form = [
            'userCode' => 'BDHSQCF',
            'userPass' => 'BDHSQabc123',
            'DesNo' => $mobile,
            "Msg" => $postData,
            'Channel' => '78'
        ];

        $url = 'http://120.55.197.77:1210/Services/MsgSend.asmx' . "/SendMsg";
        $result = Http::post($url,http_build_query($form));
        libxml_disable_entity_loader(true);
        $values = json_decode(json_encode(simplexml_load_string($result, 'SimpleXMLElement', LIBXML_NOCDATA)), true);       
        return $values;
    }

}
?>